<script>
export default {
  name: "HomeView",
  data() {
    return {
      count: 1,
    };
  },
  methods: {
    addCount() {
      this.count++;
    }
  }
}

</script>

<template>
  <main>
    <h2>
      这是主页面
    </h2>
    <p>{{ count }}</p>
    <p><button @click="addCount">点击</button></p>
  </main>
</template>

<style scoped></style>   